home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Activation / SubWindowFocus.h < prev    next >
Text File  |  1997-06-28  |  1KB  |  48 lines

  1. // SubWindowFocus.h
  2.  
  3. #ifndef SubWindowFocus_h
  4. #define SubWindowFocus_h
  5.  
  6. #ifndef WindowFocus_h
  7. #include "WindowFocus.h"
  8. #endif
  9. #ifndef TabKeys_h
  10. #include "TabKeys.h"
  11. #endif
  12. #ifndef ListLink_h
  13. #include "ListLink.h"
  14. #endif
  15. #ifndef CommandLink_h
  16. #include "CommandLink.h"
  17. #endif
  18.  
  19. class SubWindowFocus: public Focus,
  20.                              public Enableable,
  21.                              public TabKeys
  22.   {
  23.     private:
  24.         ListLink< SubWindowFocus > link;
  25.         const ListOf< SubWindowFocus >& siblings;
  26.         CommandLink<TabKeys> tabber;
  27.     
  28.     protected:
  29.         virtual void BeEnabled();
  30.         virtual void BeDisabled();
  31.         
  32.     public:
  33.         SubWindowFocus( WindowFocus&, AtStart );
  34.         SubWindowFocus( WindowFocus&, AtEnd a = atEnd );
  35.         SubWindowFocus( WindowFocus&, Before, SubWindowFocus& );
  36.         SubWindowFocus( WindowFocus&, After, SubWindowFocus& );
  37.  
  38.         SubWindowFocus( WindowFocus&, TabKeys&, AtStart );
  39.         SubWindowFocus( WindowFocus&, TabKeys&, AtEnd a = atEnd );
  40.         SubWindowFocus( WindowFocus&, TabKeys&, Before, SubWindowFocus& );
  41.         SubWindowFocus( WindowFocus&, TabKeys&, After, SubWindowFocus& );
  42.         
  43.         virtual void TabForward();
  44.         virtual void TabBackward();
  45.   };
  46.  
  47. #endif
  48.